Davide Masserut [Fri, 20 Aug 2021 15:49:35 +0000 (17:49 +0200)]
Mark page navigation commands as repeatable
* doc/emacs/basic.texi (Repeating): Document page navigation
repeatability.
* lisp/bindings.el (page-navigation-repeat-map): Add new map
(bug#50137).
* lisp/bindings.el (forward-page):
(backward-page): Mark as repeatable.
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Fri, 20 Aug 2021 15:00:10 +0000 (17:00 +0200)]
Document how to get rid of completion on `SPC' and `?'
* doc/emacs/custom.texi (Minibuffer Maps): Mention how to get rid
of completion on `SPC' and `?' (bug#16528).
Lars Ingebrigtsen [Fri, 20 Aug 2021 14:35:56 +0000 (16:35 +0200)]
Fix printing of C-@ in `describe-fontset'
* lisp/international/mule-diag.el (mule--kbd-at): New function
(bug#17836).
(print-fontset-element): Use it to get multi-key things correct.
Lars Ingebrigtsen [Fri, 20 Aug 2021 14:20:51 +0000 (16:20 +0200)]
Allow preserving symlinks with file-precious-flag set
* doc/lispref/files.texi (Saving Buffers): Document it.
* lisp/files.el (file-preserve-symlinks-on-save): New user option
(bug#18125).
(basic-save-buffer-2): Use it.
Lars Ingebrigtsen [Fri, 20 Aug 2021 13:57:06 +0000 (15:57 +0200)]
Fix infinite recursion in mode: tex
* lisp/textmodes/tex-mode.el (tex--redirect-to-submode): Inhibit
recursion when called from file-local variables (bug#50126).
Lars Ingebrigtsen [Fri, 20 Aug 2021 13:55:24 +0000 (15:55 +0200)]
Fix infinite recursion of conf-mode
* lisp/textmodes/conf-mode.el (conf-mode): Inhibit recursion when
called from file-local variables (bug#50126).
Marco Centurion [Fri, 20 Aug 2021 13:43:41 +0000 (15:43 +0200)]
Allow copy-directory to copy the source as a symlink
* doc/emacs/files.texi (Copying and Naming): Document it.
* lisp/files.el (copy-directory): Allow copying symbolic links as
is (bug#10897).
(copy-directory-create-symlink): New user option.
Copyright-paperwork-exempt: yes
Lars Ingebrigtsen [Fri, 20 Aug 2021 13:07:24 +0000 (15:07 +0200)]
Further tweaks to execute-extended-command
* lisp/simple.el (execute-extended-command): Move finding the
short command to the timer command, too (bug#50042). This further
ensures that post-command-hook is run faster.
Lars Ingebrigtsen [Fri, 20 Aug 2021 12:55:40 +0000 (14:55 +0200)]
Remove even more waiting from execute-extended-command
* lisp/simple.el (execute-extended-command): Remove all the
waiting from the command and do it all with timers (bug#50042).
This ensures that post-command-hook is run immediately also when
the command has messaged something.
Mattias Engdegård [Fri, 20 Aug 2021 11:51:36 +0000 (13:51 +0200)]
; * lisp/mouse.el: Fix typos in previous change
Mattias Engdegård [Fri, 20 Aug 2021 10:03:20 +0000 (12:03 +0200)]
Use C-mouse-1 for context menu on NS
The Mac platform convention is to use control-left-click for context
menus (as a synonym to right-click).
* lisp/mouse.el (context-menu--old-bindings): Remove.
(context-menu--saved-bindings)
(context-menu--bind-mouse, context-menu--reset-bindings): New.
(context-menu-mode): Use new functions, with C-mouse-1 as extra
binding on NS.
Mattias Engdegård [Thu, 19 Aug 2021 21:15:29 +0000 (23:15 +0200)]
Fix xref {prev,next}-error target buffer match highlighting extent
* lisp/progmodes/xref.el (xref--next-error-function):
Bind `xref--current-item` during the call to `xref--show-location` so
that `xref-pulse-momentarily` finds the match extent.
Mattias Engdegård [Thu, 19 Aug 2021 09:35:41 +0000 (11:35 +0200)]
Don't mutate string literal
* lisp/obsolete/terminal.el (terminal-escape-map): Rewrite loop in a
simpler and more robust way.
Lars Ingebrigtsen [Fri, 20 Aug 2021 00:32:02 +0000 (02:32 +0200)]
Tweak a failing custom test
* test/lisp/custom-tests.el (custom-tests-require-theme): Fix a
native-comp-related test failure.
In this test, we set load-path to nil, and under native-comp some of
the tests want to give a warning:
Warning (comp): Cannot look-up eln file as no source file was
found for /tmp/custom-tests-bfdbkW/custom-tests--d.elc
But we can't load warning.el after setting load-path to nil, so
require it first.
João Távora [Thu, 19 Aug 2021 22:54:51 +0000 (23:54 +0100)]
Make icomplete-forward-completions O(1) when icomplete-scroll is t
In particular, this makes the recently added
icomplete-vertical-goto-last (bug#49005) be O(n) instead of O(n^2).
That used to be almost unbearably slow for large n.
* lisp/icomplete.el (icomplete-forward-completions): don't call last
unless needed.
Lars Ingebrigtsen [Thu, 19 Aug 2021 16:26:18 +0000 (18:26 +0200)]
Remove more mentions of the removed `M-o' facemenu binding
* doc/emacs/text.texi (Fill Commands, Fill Commands): Adjust `M-o'
mentions.
* etc/refcards/refcard.tex (section{Formatting}):
* etc/refcards/pt-br-refcard.tex (section{Formatando}):
* etc/refcards/fr-refcard.tex (section{Formater}): Remove mention
of `M-o'.
Madhu [Thu, 19 Aug 2021 16:01:06 +0000 (18:01 +0200)]
Correctly call completion-in-region in shell.el
* lisp/shell.el (shell-dynamic-complete-command)
(shell-dynamic-complete-environment-variable): Correctly call
completion-in-region (bug#50125).
Copyright-paperwork-exempt: yes
Basil L. Contovounesios [Thu, 19 Aug 2021 15:58:58 +0000 (16:58 +0100)]
; Fix escaping in recent ibuf-ext.el doc change.
Lars Ingebrigtsen [Thu, 19 Aug 2021 15:48:14 +0000 (17:48 +0200)]
Fix space at the start of appt mode line element
* lisp/calendar/appt.el (appt-check): Add space at the end
(bug#18164) -- all `global-mode-string' elements should have it
there to get an even space distribution.
Lars Ingebrigtsen [Thu, 19 Aug 2021 15:11:00 +0000 (17:11 +0200)]
Add ibuffer-saved-filter-groups example to the doc string
* lisp/ibuf-ext.el (ibuffer-saved-filter-groups): Add an example
for this complicated syntax (bug#18694).
Lars Ingebrigtsen [Thu, 19 Aug 2021 14:21:07 +0000 (16:21 +0200)]
Fix dired switch (that contain quotes and spaces) parsing
* lisp/files.el (insert-directory): Tokenize shell strings
correctly (bug#18875).
Lars Ingebrigtsen [Thu, 19 Aug 2021 13:19:23 +0000 (15:19 +0200)]
Fix st.el doc string
* lisp/term/st.el (xterm-st-extra-capabilities): New user option
(bug#50119).
(terminal-init-st): Use it to avoid a two-second timeout.
Peter Münster [Wed, 18 Aug 2021 09:21:51 +0000 (11:21 +0200)]
Add support for history of image tags and completion in the minibuffer
* lisp/image-dired.el (image-dired-tag-history): New variable holding the
tag history.
(image-dired-tag-files, image-dired-tag-thumbnail, image-dired-delete-tag)
(image-dired-tag-thumbnail-remove): Use it for the user input.
Peter Münster [Wed, 18 Aug 2021 00:02:02 +0000 (02:02 +0200)]
Avoid problems when one tag/file is a substring of another
* lisp/image-dired.el (image-dired-remove-tag): End of filename is bound
by ";" and end of tag is bound by ";" or end of line.
Peter Münster [Tue, 17 Aug 2021 23:37:43 +0000 (01:37 +0200)]
New placement of newline characters in image-dired-db-file
It's more usual to have the newline at the end of the line, instead of the
beginning. This change avoids missing newline at the end of the file, an
empty line at the start and eventually a lot of empty lines when
`require-final-newline' is not nil.
* lisp/image-dired.el (image-dired-write-tags): Insert newline at the end
of the line, instead of the beginning.
(image-dired-remove-tag): Do not delete empty line at end of buffer.
Peter Münster [Mon, 16 Aug 2021 22:19:08 +0000 (00:19 +0200)]
Fix deletion of associated image
* lisp/image-dired.el (image-dired-delete-marked): Treat original images
first, because point position is used when there are no marked files.
Eli Zaretskii [Thu, 19 Aug 2021 12:44:55 +0000 (15:44 +0300)]
Fix inaccuracies in documentation of 'message-truncate-lines'
* doc/lispref/display.texi (Echo Area Customization):
* src/xdisp.c (syms_of_xdisp): Adjust the documentation of
message-truncate-lines to changes that fixed bug#46718.
Eli Zaretskii [Thu, 19 Aug 2021 12:29:49 +0000 (15:29 +0300)]
Minor doc fixes in icomplete.el
* lisp/icomplete.el (icomplete-section): Add :version.
(icomplete--augment): Doc fix.
Eli Zaretskii [Thu, 19 Aug 2021 12:25:26 +0000 (15:25 +0300)]
; * src/xdisp.c (hscroll_window_tree): Fix a typo in a comment.
Eli Zaretskii [Thu, 19 Aug 2021 12:24:14 +0000 (15:24 +0300)]
Fix errors with hscrolling mini-windows under truncate-lines
* src/xdisp.c (hscroll_window_tree): Disallow hscroll in
mini-windows that display echo-area messages. (Bug#50096)
Lars Ingebrigtsen [Thu, 19 Aug 2021 12:18:27 +0000 (14:18 +0200)]
stterm doesn't understand all codes that xterm does
* lisp/term/st.el (xterm-st-extra-capabilities): New user option
(bug#50119).
(terminal-init-st): Use it to avoid a two-second timeout.
João Távora [Thu, 19 Aug 2021 10:29:14 +0000 (11:29 +0100)]
; Correct :version tag of icomplete-selected-match face
* lisp/icomplete.el (icomplete-selected-match): Fix :version
João Távora [Wed, 18 Aug 2021 23:48:26 +0000 (00:48 +0100)]
Section by 'group-function' in Icomplete and Fido's vertical modes
Fixes: bug#48545
* lisp/icomplete.el (icomplete--augment): Rewrite from icomplete--affixate.
(icomplete--render-vertical): Rework.
(icomplete--vertical-minibuffer-setup): Separator is hardcoded "\n", no
need to set.
João Távora [Thu, 19 Aug 2021 10:04:37 +0000 (11:04 +0100)]
Improve fix of bug#49888 on no-pattern flex sorting
This version is functionally equivalent, but doesn't duplicate any
code. When nothing "flexy" is happening, it works by simply not doing
any metadata adjustments, instead of attempting to synthesize a
function to mimic the non-flex case.
* lisp/minibuffer.el (completion--flex-adjust-metadata): Simplify.
Dmitry Gutov [Thu, 19 Aug 2021 00:57:58 +0000 (03:57 +0300)]
Fix vc-root-diff broken with Git as well
* lisp/vc/vc.el (vc-root-diff): Fix similar to
35023214031e1 by
avoiding the abbreviated directory name in argument (bug#39452).
Eli Zaretskii [Wed, 18 Aug 2021 19:07:30 +0000 (22:07 +0300)]
Improve documentation of 'assoc'
* doc/lispref/lists.texi (Association Lists):
* src/fns.c (Fassoc): Document how TESTFN is called. (Bug#50110)
Glenn Morris [Wed, 18 Aug 2021 18:50:42 +0000 (11:50 -0700)]
; Fix paren typo
Juri Linkov [Wed, 18 Aug 2021 17:02:39 +0000 (20:02 +0300)]
* lisp/progmodes/xref.el (xref--collect-matches): Widen temporarily.
Juri Linkov [Wed, 18 Aug 2021 17:01:03 +0000 (20:01 +0300)]
* lisp/mouse.el: More fixes for context-menu.
(context-menu-map): Remove menu title "Context Menu" (bug#50067).
(context-menu-minor): Reverse sub-menus to display exactly in the same order
as on the menu bar.
Eli Zaretskii [Wed, 18 Aug 2021 16:10:01 +0000 (19:10 +0300)]
Improve documentation of last change.
* etc/NEWS: Mention the string value of 'auto-composition-mode'.
* src/composite.c (syms_of_composite) <auto-composition-mode>: Doc
fix.
Lars Ingebrigtsen [Wed, 18 Aug 2021 14:24:40 +0000 (16:24 +0200)]
Disable auto compositions on the Linux console only
* lisp/term/linux.el (terminal-init-linux): Disable auto
compositions on "linux" consoles (bug#21363).
* src/composite.c (inhibit_auto_composition): New function to
implement this.
(composition_compute_stop_pos, composition_adjust_point)
(Ffind_composition_internal): Use it.
(syms_of_composite): Document it.
* src/lisp.h: Export tty_type_name.
* src/term.c (tty_type_name): Factored out.
(Ftty_type): Use it.
Lars Ingebrigtsen [Wed, 18 Aug 2021 13:32:19 +0000 (15:32 +0200)]
Add undo-in-region test case for bug#21523
Eli Zaretskii [Wed, 18 Aug 2021 13:14:29 +0000 (16:14 +0300)]
Yet another place inside redisplay_window to prevent quitting
* src/xdisp.c (handle_single_display_spec): Inhibit quitting
around the call to lookup_image. (Bug#44448)
Eli Zaretskii [Wed, 18 Aug 2021 13:01:57 +0000 (16:01 +0300)]
Fix abort when turning on Hebrew or Arabic input methods
* src/xdisp.c (face_before_or_after_it_pos): Add the missing
initialization of the bidi scan direction. (Bug#50107)
Peter Münster [Wed, 18 Aug 2021 12:53:25 +0000 (14:53 +0200)]
Add menu bindings to new functions in image-dired.el
* lisp/image-dired.el (image-dired--with-marked): New macro for
cycling over marked thumbnails.
(image-dired-tag-thumbnail, image-dired-tag-thumbnail-remove): Can
handle now also all marked thumbnails.
(image-dired-tag-marked-thumbnails): Remove it, because it's
obsoleted by `image-dired-tag-thumbnail' now.
(image-dired-delete-marked): Use new macro
`image-dired--with-marked', and add command to menu (bug#50000).
João Távora [Wed, 18 Aug 2021 10:37:55 +0000 (11:37 +0100)]
; * etc/NEWS (Icomplete): Fix typo and remove redundant word
pillule [Wed, 18 Aug 2021 07:21:06 +0000 (09:21 +0200)]
Fix ediff3 layouts with window-combination-resize non-nil (Bug#49277)
* lisp/vc/ediff-wind.el (ediff-setup-windows-plain-compare)
(ediff-setup-windows-multiframe-compare): Fix three windows
layouts produced by ediff3 when 'window-combination-resize'
was customized to t and 'even-window-sizes' to nil.
pillule [Wed, 18 Aug 2021 07:16:06 +0000 (09:16 +0200)]
Fix behavior when switch-to-prev-buffer-skip is a function (Bug#49275)
* lisp/window.el (switch-to-prev-buffer)
(switch-to-next-buffer): More correctly handle cases where
'switch-to-prev-buffer-skip' is a function.
Basil L. Contovounesios [Tue, 17 Aug 2021 23:54:44 +0000 (00:54 +0100)]
; Fix quoting of braces in electric-tests.el.
Andrea Corallo [Tue, 17 Aug 2021 21:44:12 +0000 (23:44 +0200)]
* Fix `native-compile-target-directory' effectiveness for async compilation.
* lisp/emacs-lisp/comp.el (comp-run-async-workers): Forward to async
workers `native-compile-target-directory'.
Glenn Morris [Tue, 17 Aug 2021 18:31:09 +0000 (11:31 -0700)]
* lisp/mouse.el (context-menu-filter-function): Fix type.
Eli Zaretskii [Tue, 17 Aug 2021 18:29:58 +0000 (21:29 +0300)]
Another fix for quitting while displaying non-selected windows
* src/xdisp.c (handle_face_prop, extend_face_to_end_of_line):
Inhibit quitting around the call to face_at_pos, to prevent
leaking wrong value of point when the user quits while we
redisplay a non-selected window. (Bug#44448)
Glenn Morris [Tue, 17 Aug 2021 15:53:00 +0000 (08:53 -0700)]
* test/lisp/electric-tests.el: Skip most c-mode tests on hydra.
Eli Zaretskii [Tue, 17 Aug 2021 12:47:10 +0000 (15:47 +0300)]
; * etc/NEWS: Fix wording of a recently added entry.
Eli Zaretskii [Tue, 17 Aug 2021 12:40:05 +0000 (15:40 +0300)]
; Fix a comment in a recent commit.
* lisp/help-mode.el (help-mode-syntax-table): Fix punctuation in a
comment.
Eli Zaretskii [Tue, 17 Aug 2021 12:31:53 +0000 (15:31 +0300)]
Fix TTY display performance degradation due to many markers
* src/coding.c (encode_coding_object): Don't assume that
src_object == dst_object means src_object is the current buffer.
Add the missing commentary that explains the arguments.
(Bug#49127)
Michalis V [Tue, 17 Aug 2021 12:20:57 +0000 (14:20 +0200)]
Improve `forward-sexp' in *Help* buffers
* lisp/help-mode.el (help-mode-syntax-table): New variable (bug#39134).
(help-make-xrefs): Use it to make picking out symbols in curved
quotes work reliably.
(help-xref-on-pp): Ditto.
João Távora [Tue, 17 Aug 2021 12:06:06 +0000 (13:06 +0100)]
Bind <up> and <down> in icomplete-vertical-mode
Suggested by Ergus <spacibba@aol.com>
* lisp/icomplete.el (icomplete-vertical-mode-minibuffer-map): Bind
<up> and <down>
João Távora [Tue, 17 Aug 2021 11:48:37 +0000 (12:48 +0100)]
Jump to first,last completion with M-<, M-> in icomplete-vertical-mode
Fixes: bug#49005
Co-authored-by: Simon Lang <simon.lang@outlook.com>
* lisp/icomplete.el (icomplete-backward-completions): Return
non-nil iff something was stepped. Ajust docstring.
(icomplete-forward-completions): Adjust docstring.
(icomplete-vertical-goto-first, icomplete-vertical-goto-last): New commands.
(icomplete-vertical-mode-minibuffer-map): Bind new commands to M-< and M->.
Juri Linkov [Tue, 17 Aug 2021 08:11:35 +0000 (11:11 +0300)]
Merge branch 'feature/context-menu'
Dmitry Gutov [Tue, 17 Aug 2021 01:07:19 +0000 (04:07 +0300)]
ruby-mode imenu: Support methods with modifiers
* lisp/progmodes/ruby-mode.el (ruby-imenu-create-index-in-block):
Support methods with modifiers (visibility or otherwise)
(bug#50079).
Dmitry Gutov [Tue, 17 Aug 2021 00:32:12 +0000 (03:32 +0300)]
vc-git-region-history: Fix to call 'diff' more correctly
* lisp/vc/vc-git.el (vc-git-region-history):
Fix to pass a list to the backend 'diff' command (bug#39452).
João Távora [Mon, 16 Aug 2021 22:15:12 +0000 (23:15 +0100)]
Make icomplete-vertical-mode take immediate effect (bug#49075)
* etc/NEWS: Mention change.
* lisp/icomplete.el (icomplete-vertical-mode):
(fido-vertical-mode): Tweak docstring. Turn on
icomplete-mode. and fido-mdoe
Stephen Berman [Mon, 16 Aug 2021 20:55:50 +0000 (22:55 +0200)]
; Fix menu entry alignment of last change
* doc/lispref/elisp.texi (Top): Fix alignment.
Glenn Morris [Mon, 16 Aug 2021 19:34:53 +0000 (12:34 -0700)]
* test/Makefile.in: Verbose logging for electric-tests on hydra.
Eli Zaretskii [Mon, 16 Aug 2021 19:06:26 +0000 (22:06 +0300)]
Plug another hole for longjmp-ing from 'redisplay_window'
* src/fringe.c (update_window_fringes): Inhibit quitting, so as
not to longjmp out of redisplay_window. (Bug#44448)
Stephen Berman [Mon, 16 Aug 2021 17:13:53 +0000 (19:13 +0200)]
Add Command Modes to Elisp manual menu and add index entries
* doc/lispref/commands.texi (Command Modes): Add index entries.
* doc/lispref/elisp.texi (Top): Add entry for the Command Modes
node to the detailed node listing.
Eli Zaretskii [Mon, 16 Aug 2021 17:11:33 +0000 (20:11 +0300)]
Fix recent documentation additions
* doc/lispref/searching.texi (Search and Replace): Document the
new functions by @defun.
Glenn Morris [Mon, 16 Aug 2021 15:01:03 +0000 (08:01 -0700)]
Merge from origin/emacs-27
9664ee182c (origin/emacs-27) C++ Mode: Don't confuse the pointer oper...
b3aec9ee48 CC Mode: Fix unstable fontification of doc strings.
# Conflicts:
# lisp/progmodes/cc-fonts.el
Lars Ingebrigtsen [Mon, 16 Aug 2021 13:40:43 +0000 (15:40 +0200)]
Make overlays-in treat zero-length overlays at point-max consistently
* doc/lispref/display.texi (Finding Overlays): Adjust documentation.
* src/buffer.c (overlays_in): Treat the end of the buffer and the
end of the narrowed-to buffer the same (bug#19422).
(Foverlays_in): Adjust doc string.
Lars Ingebrigtsen [Mon, 16 Aug 2021 12:49:19 +0000 (14:49 +0200)]
Fix cursor movement on the Linux console with certain characters
* lisp/term/linux.el (terminal-init-linux): Switch off
auto-compositions, because they confuse cursor movement on the
Linux console (bug#21363).
Lars Ingebrigtsen [Mon, 16 Aug 2021 12:24:53 +0000 (14:24 +0200)]
Minor clarification for define-minor-mode :variable
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
* doc/lispref/modes.texi (Defining Minor Modes): Clarify what the
setter function should do (bug#14875).
Clément Pit-Claudel [Mon, 16 Aug 2021 12:10:41 +0000 (14:10 +0200)]
Remove prettification for \par in tex-mode
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Remove
prettified version of `\par'. Many fonts don't display anything for
the character it was mapped to (#x2029 PARAGRAPH SEPARATOR), so
enabling prettification makes every `\par' disappear (bug#50073).
Mattias Engdegård [Mon, 16 Aug 2021 09:37:19 +0000 (11:37 +0200)]
; * test/lisp/vc/diff-mode-tests.el: Remove useless \
Lars Ingebrigtsen [Mon, 16 Aug 2021 11:20:35 +0000 (13:20 +0200)]
Add new functions to replace strings/regexp in a region
* doc/lispref/searching.texi (Search and Replace): Document them.
* lisp/subr.el (replace-string-in-region)
(replace-regexp-in-region): New functions.
* lisp/emacs-lisp/shortdoc.el (regexp, buffer): Mention them.
Lars Ingebrigtsen [Mon, 16 Aug 2021 11:17:25 +0000 (13:17 +0200)]
Don't remove `fontified' in nxml--buffer-substring-filter
* lisp/nxml/nxml-mode.el (nxml--buffer-substring-filter): Removing
`fontified' is probably unnecessary (bug#50061).
Dmitry Gutov [Mon, 16 Aug 2021 00:13:30 +0000 (03:13 +0300)]
Fix regressions in the last change
* lisp/vc/vc-git.el (vc-git-register):
Use file names verbatim with 'git update-index', as it only accepts
file names, not pathspecs (bug#39452).
* lisp/vc/vc.el (vc-print-root-log):
Expand ROOTDIR, so that vc-git-print-log doesn't receive an
abbreviated name. Literal pathspecs don't work with those.
Alan Mackenzie [Sun, 15 Aug 2021 19:43:58 +0000 (19:43 +0000)]
C++ Mode: Don't confuse the pointer operator -> with the type indicating ->
This fixes bug #47468.
* lisp/progmodes/cc-engine.el (c-looking-at-inexpr-block): While searching
backwards for "->" which is a type indicating operator, disallow also commas.
Alan Mackenzie [Sun, 15 Aug 2021 18:08:25 +0000 (18:08 +0000)]
CC Mode: Fix unstable fontification of doc strings.
Also optimize a loop over several line doc-comments.
* lisp/progmodes/cc-fonts.el (c-font-lock-doc-comments): New variable
comment-mid, used as the starting point for applying c-doc-face-name in a
line comments. In block comments, apply this face not from `comment-beg' but
from `region-beg', no earlier than the start of the fontification region.
Juri Linkov [Sun, 15 Aug 2021 16:27:06 +0000 (19:27 +0300)]
Use map-keymap in context-menu-global, context-menu-local, context-menu-minor
Juri Linkov [Sun, 15 Aug 2021 16:18:05 +0000 (19:18 +0300)]
* lisp/simple.el (shift-select-mode): Add new choice 'permanent' (bug#50038).
(handle-shift-selection): Handle new choice 'permanent'.
Juri Linkov [Sun, 15 Aug 2021 16:15:42 +0000 (19:15 +0300)]
* lisp/tab-bar.el (tab-bar-new-button-show): Make variable obsolete.
Stefan Monnier [Sun, 15 Aug 2021 14:18:08 +0000 (10:18 -0400)]
* lisp/nxml/nxml-mode.el (nxml-mode): Use add-function
This avoids calling the internal function `buffer-substring--filter`
from `nxml.el`.
(nxml--buffer-substring-filter): Adjust accordingly.
Lars Ingebrigtsen [Sun, 15 Aug 2021 13:43:35 +0000 (15:43 +0200)]
Filter out rng-state elements in nxml-mode buffers from the kill ring
* lisp/nxml/nxml-mode.el (nxml--buffer-substring-filter): Filter
out `rng-state' objects (bug#50061).
(nxml-mode): Set `filter-buffer-substring-function'.
João Távora [Sun, 15 Aug 2021 12:19:59 +0000 (13:19 +0100)]
Sort by recency in flex completion style when no flexy stuff happening
Fixes: bug#49888
* minibuffer.el (completion--flex-adjust-metadata): Fall back to usual
alphanumeric, length, recency strategy if no minibuffer input. There
is still a bug indicated by the nearby FIXMEs, though.
Augusto Stoffel [Sun, 15 Aug 2021 12:00:49 +0000 (14:00 +0200)]
Allow evaluating Python code across machines
* python.el (python-shell-send-string): Ensure that the temporary file
is created in the host running the Python process (bug#50057).
Lars Ingebrigtsen [Sun, 15 Aug 2021 11:36:24 +0000 (13:36 +0200)]
Run execute-extended-command key binding suggestion from a timer
* lisp/simple.el (execute-extended-command): Run the key binding
suggestion from a timer instead of in the program flow -- this
allows `post-command-hook' to be executed immediately (bug#50042).
Lars Ingebrigtsen [Sun, 15 Aug 2021 11:25:18 +0000 (13:25 +0200)]
Make Emacs compile with musl instead of glibc
* src/alloc.c: musl doesn't have malloc_info (bug#50058).
Eli Zaretskii [Sun, 15 Aug 2021 11:18:17 +0000 (14:18 +0300)]
; * src/xdisp.c (display_mode_lines): Fix comment.
Eli Zaretskii [Sun, 15 Aug 2021 11:11:23 +0000 (14:11 +0300)]
Fix unwarranted point movement after C-g
When the same buffer is displayed in more than one window,
redisplay temporarily moves point to the window-point when it
works on non-selected windows. If we allow C-g to quit out of
redisplay_window in this situation, point will appear to have
moved to the window-point of that non-selected window, which is
unwarranted. These changes prevent quitting in strategic places,
so that we never quit out of redisplay_window.
* src/xdisp.c (run_window_scroll_functions):
Prevent quitting while running window-scroll-functions, so that we
don't quit out of redisplay_window with temporarily moved point.
(redisplay_window): While redisplaying the mode line, prevent
quitting, to avoid exiting while point is temporarily moved.
(decode_mode_spec): Use safe_call1 instead of call1, to trap any
errors instead of letting them throw out of redisplay. (Bug#44448)
Masahiro Nakamura [Sun, 15 Aug 2021 09:54:56 +0000 (11:54 +0200)]
Mark up commands in shortdoc.el for modes
* lisp/emacs-lisp/shortdoc.el: Add command mode tagging
(bug#50064).
João Távora [Sun, 15 Aug 2021 08:12:23 +0000 (09:12 +0100)]
Fix bug#50063 when using icomplete-fido-kill with C-x p p
C-x p p utilizes a completion table "category" which is 'project-file'
icomplete-fido-kill only functioned for 'buffer' and 'file', and
failed with a non-informative message when something else was used.
* lisp/icomplete.el (icomplete-fido-kill): Support 'project-file'
class. Use cl-case, instead of pcase.
Wolfgang Scherer [Sun, 15 Aug 2021 01:02:23 +0000 (04:02 +0300)]
Fix vc-git-state for filenames with wildcards
* lisp/vc/vc-git.el: (vc-git--literal-pathspec-inner),
(vc-git--literal-pathspec), (vc-git--literal-pathspecs) new functions
to add ":(literal)" pathspec magic (bug#39452).
(vc-git-registered), (vc-git-state), (vc-git-dir-status-goto-stage),
(vc-git-register), (vc-git-unregister), (vc-git-checkin),
(vc-git-find-revision), (vc-git-checkout), (vc-git-revert),
(vc-git-conflicted-files), (vc-git-print-log), (vc-git-diff),
(vc-git-previous-revision), (vc-git-next-revision),
(vc-git-delete-file), (vc-git-rename-file) functions
vc-git--literal-pathspec, vc-git--literal-pathspecs applied.
Dmitry Gutov [Sun, 15 Aug 2021 00:45:42 +0000 (03:45 +0300)]
Revert "Bind the GIT_LITERAL_PATHSPECS environment variable"
This reverts commit
a2d0ff26005c5c10ffe0d84bd8b458a06828be82.
It was found to break a certain use case, and we decided to go with
the other solution (bug#39452).
Lars Ingebrigtsen [Sat, 14 Aug 2021 19:37:32 +0000 (21:37 +0200)]
Mark auto-revert-test02-auto-revert-deleted-file as unstable
* test/lisp/autorevert-tests.el
(auto-revert-test02-auto-revert-deleted-file): This tests fails
about 30% of the time for me.
Eli Zaretskii [Sat, 14 Aug 2021 17:38:05 +0000 (20:38 +0300)]
* src/w32.c (_sys_read_ahead): Pacify a silly compiler warning.
Stefan Monnier [Sat, 14 Aug 2021 16:22:57 +0000 (12:22 -0400)]
* lisp/emacs-lisp/easymenu.el (easy-menu-do-define): Fix bug#50051
This corrects the quite confused conversion to closure done in
commit
a070bd1c8b5213ad469d41dd80d392f924644aed.
Alan Mackenzie [Sat, 14 Aug 2021 14:42:55 +0000 (14:42 +0000)]
* lisp/progmodes/cc-engine.el (c-ml-string-in-end-delim): Rewrite function
Eli Zaretskii [Sat, 14 Aug 2021 14:39:38 +0000 (17:39 +0300)]
Fix 'random' on MS-Windows when integers are wider than 30 bits
* src/w32.c (random): Provide more random bits for MS-Windows
builds with EMACS_INT that is wider than 32 bits. (Bug#32605)
Lars Ingebrigtsen [Sat, 14 Aug 2021 14:08:48 +0000 (16:08 +0200)]
Add a test for netrc folding parsing (bug#25769)